package seekting.demo2017.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by Administrator on 2017/8/26.
 */

public class MyOrderReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {

        Log.d("seekting", "MyOrderReceiver.onReceive()" + Thread.currentThread().getName());
        int result = getResultCode();
        String resultData = getResultData();
        Log.d("seekting", "MyOrderReceiver.onReceive()" + result + resultData);

        Bundle bundle = new Bundle();
        bundle.putInt("seekting", 2);
        setResultExtras(bundle);
        abortBroadcast();
        boolean isAbort = getAbortBroadcast();
        Log.d("seekting", "MyOrderReceiver.onReceive()isAbort=" + isAbort);
        clearAbortBroadcast();


    }
}
